import Vue from 'vue'
import App from './App'
import store from './store'
import {router, RouterMount} from './router.js'
import eventBus from './events'
import uView from "uview-ui"
import filters from './filters'
import mixins from './plugins/mixins'
import plugins from './plugins'

// 提现密码相关组件
import validCode from './components/validCode.vue'
Vue.component('validcode',validCode)

Vue.use(uView)
Vue.use(plugins)
Vue.use(router)

Vue.config.productionTip = false
Vue.prototype.$eventBus = eventBus

// mixin混入，添加全局方法
Vue.mixin({
	filters,
	...mixins
})

uni.hideTabBar()

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})

//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// // #ifdef H5
	RouterMount(app, router, '#app')
// // #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
